package demo4;

import static demo2.Path.readPathTest;

public class Test {
    public static void main(String[] args){
        String path = "/course/lecture/Lecture01.pdf";
        String s1 = readPathTest(path);
        System.out.println(s1);
    }
    private static String readPathTest(String path){

        int index1 = path.lastIndexOf("/");
        int index2 = path.lastIndexOf(".");
        String s1 = path.substring(index1 + 1,index2);
        return s1;
    }
}
